Skip to content

[meta] exclude .gitmodules from npm package#340

Closed
kmosher wants to merge 1 commit into
browserify:mainfrom
kmosher:fix/npmignore-gitmodules
Closed

[meta] exclude .gitmodules from npm package#340
kmosher wants to merge 1 commit into
browserify:mainfrom
kmosher:fix/npmignore-gitmodules

Conversation

@kmosher
Copy link
Copy Markdown

@kmosher kmosher commented May 14, 2026

.gitmodules was accidentally included in the published tarball in the latest release — it's the git submodule config for test/list-exports, which has no meaning outside of a git repo.

This is breaking installation in Claude Code sandboxes, for reasons expounded on in the linked issue.

The actual test/list-exports directory is also already excluded after it was converted to a submodule. That change in itself might be contra the often cited goal of including the full set of tests in the package tarball for local offline inspection. Given .gitmodules is just a GitHub URL though, its removal doesn't seem to make matters much worse on that front.

Given the severity of the breakage, it might be worth re-releasing 2.0.0-next.6 with the file stripped.

Fixes #339.

@kmosher kmosher force-pushed the fix/npmignore-gitmodules branch from 82bbf01 to d4c03b1 Compare May 14, 2026 23:41
@ljharb
Copy link
Copy Markdown
Member

ljharb commented May 14, 2026

This was already done in 816c9e2

@ljharb ljharb closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2.0.0-next.6 accidentally ships .gitmodules in the npm package

2 participants